home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
Dashboard2.lha
/
Dashboard2
/
AmiTCP
/
bin
/
ParseThor
< prev
next >
Wrap
Text File
|
1998-03-27
|
1KB
|
57 lines
/*
$VER: ParseThor 2.0 (26.3.98)
(c) Neil Bothwick
Imports downloaded news and mail into Thor
*/
/* ;;;Change these to suit your setup */
System = 'Wirenet' /* The name of your Internet system in Thor */
LogFile = 'UUSpool:Info.log'
;;;
/* ;;;Don't change anything below here */
options results
address command
'Wirenet:bin/AddLibs'
if ~show('p', 'BBSREAD') then do
'run >nil: `GetEnv THOR/THORPath`bin/LoadBBSRead'
'WaitForPort BBSREAD'
end
;;;
/* ;;;Get the path to System data */
drop BBS.
address BBSREAD
GETBBSDATA '"'System'"' stem BBS
SystemDir = BBS.BBSPATH
TempDir = SystemDir'tcp_tmp'
TempBak = SystemDir'tcp_tmp.bak'
address command
;;;
/* ;;;Make backup copy of batch and progress files */
if exists(TempDir) then do
if ~exists(TempBak) then 'makedir' TempBak
'copy' TempDir TempBak 'all clone quiet'
end
;;;
/* ;;;Unbatch mail/news */
unbatch = 0
if exists(TempDir'/m.0') then do
if word(statef(TempDir'/m.0'),2) >0 then unbatch = 1
end
else do i=0 to 9
if exists(TempDir'/n.'i) then do
unbatch = 1
leave
end
end
if unbatch = 1 then do
TempLog = 'T:Parse.'||time(s)
GetVar('Thor/ThorPath')||'bin/GetTCP BBSNAME' System 'SOCKETS 10 PUBSCREEN "" PARSEONLY LOGFILE' TempLog
'run >NIL: ShowLog' TempLog req log info
end
;;;
exit